import java.util.Comparator;
import java.util.List;

public class LikeSortStrategy implements CommentStrategy{
    @Override
    public void sort(List<Comment> commentList) {
        commentList.sort(Comparator.comparing(Comment::getLikeCount).reversed());
    }
}
